<template>
	<view>
		<view v-for="(item, index) in orderList" :key="index" style="margin: 0 10rpx 0 10rpx;">
			<orderitem :dataItem="item" />
		</view>
	</view>
</template>

<script>
	import requestHttp from '@/providers/essential/httpService.js'
	import orderitem from "@/pagesA/merchant/componets/order.vue"
	export default {
		components: {
			orderitem
		},
		data() {
			return {
				orderList: []
			}
		},
		methods: {

		},
		onLoad() {
			requestHttp.getData('/magic/web/app/pay/order/reservation/getmerchantorder', {
				merchantid: 1
			}).then((res) => {
				this.orderList=res.data
			})
			
		}
	}
</script>

<style lang="scss" scoped>

</style>
<style>
	page {
		height: 100%;
		background-color: #F6F7FA;
	}
</style>